package com.gdteam.kernel.event.impl;

import org.slf4j.Logger;

import com.gdteam.kernel.event.Context;
import com.gdteam.kernel.event.Event;

public class DefaultEvent implements Event {

    private String type = null;;
    private Logger log = null;
    private Context ctxt = null;
    
    public DefaultEvent(Logger log,String type,Context ctxt) {
        this.log = log;
        this.type = type;
        this.ctxt = ctxt;
    }
    
    public void fire() {
        log.info("Event fired");
    }

    public Context getContext() {
        return ctxt;
    }

    public String getType() {
        return this.type;
    }

    public void setType(String type) {
        this.type = type;
    }
}
